<?php

namespace App\Http\Controllers\Admin;

use App\GroupMaster;
use App\Http\Controllers\Controller;
use App\Http\Response;
use Illuminate\Http\Request;

class GroupMasterController extends Controller
{
    use Response;
    public function index(Request $request)
    {
        $group_id=$request->get('group_id');
        $result=GroupMaster::with('user')->where('group_buy_id',$group_id)->latest()->paginate($request->get('pageSize'),'*','pageNo');
        return $this->success(200,$result);
    }
}
